<?
/**
 * Copyright 2007 Melange.
 *
 * This file is part of PHP-MELANGE.
 *
 * PHP-MELANGE is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * PHP-MELANGE is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with PHP-MELANGE; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * @category    Melange
 * @package     php-melange
 * @subpackage  cms
 * @copyright   Copyright (c) 2007 Jeroen Simons. All rights reserved
 * @author      Jeroen Simons <jeroen@melange.nl>
 * @link        http://www.melange.nl/
 *
 */

require_once("cms/core/helper/Abstract.php");

class PHP_CMS_View_Helper_Footer extends PHP_CMS_View_Helper_Abstract {

    public function footer($active=null) {
?>

        </div>

        <div class="push"></div>

    </div>

    <div class="footer">
        <div class="left">Copyright &copy; <?=date("Y")?> | <?=$this->param(_Core::COPYRIGHT)?> | <?=$this->message("label.reserved", _Core::BUNDLE)?>.</div>
        <div class="right">

            <? if($this->pageContext->request->getUserPrincipal() !== null): ?>

                <?=$this->message("label.welcome", _Core::BUNDLE)?>, <?=ucfirst($this->pageContext->request->getUserPrincipal()->getName())?>

                | <a href="logout"><?=$this->message("nav.logout", _Core::BUNDLE)?></a> |

            <? endif; ?>

            <? /* if($this->pageContext->request->isUserInRole(_User::ROLE_ADMIN)): ?>

                <a href="user/list"><?=$active == "users" ?
                    "<b>".$this->message("nav.users", _Core::BUNDLE)."</b>" : $this->message("nav.users", _Core::BUNDLE)?></a>

                | <a href="setting/index"><?=$active == "settings" ?
                    "<b>".$this->message("nav.settings", _Core::BUNDLE)."</b>" :
                    $this->message("nav.settings", _Core::BUNDLE)?></a> |


            <? endif; */ ?>

            <img src="static.php?file=<?=$this->image('cms/core/view/gfx/xhtml_valid.png')?>" width="16" height="16" alt="Valid XHTML 1.0 Strict" title="Valid XHTML 1.0 Strict" />

            <img src="static.php?file=<?=$this->image('cms/core/view/gfx/css_valid.png')?>" width="16" height="16" alt="CSS Valid" title="CSS Valid" />

        </div>
    </div>

</body>
</html>

<?
    }
}
?>